package com.extension.company.view.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;

import com.extension.company.view.main.FragmentCar;

import java.util.List;

/**
 * 作者:zwk
 * 联系方式：497981239@qq.com
 * 时间：on 2019/6/23 14:23
 * 功能：同城二级 适配器
 */
public class LocalCitySecondAdapter extends FragmentPagerAdapter {
	private List<Fragment> fragmentList;

	public LocalCitySecondAdapter(FragmentManager fm, List<Fragment> list) {
		super(fm);
		this.fragmentList = list;
	}

	@Override
	public Fragment getItem(int i) {
		return fragmentList.get(i);
	}

	@Override
	public int getCount() {
		return fragmentList.size();
	}
}
